#include "TaskCommerce.h"
#include "Building/City.h"
#include "Sprite/Knight.h"

TaskCommerce::TaskCommerce()
{
}

bool TaskCommerce::Init(City *city, Knight *knight, QDate assinDate, int preDays)
{
    Task::Init(assinDate,preDays);
    this->m_city=city;
    this->m_knight=knight;
    this->m_taskType=FlgTaskCommerce;

    return true;
}

void TaskCommerce::taskProcess()
{
    this->m_city->setCommer(this->m_city->getCommer()+this->m_knight->getIntelligence()*10);
}
